package org.mx.service.tomcat;

import org.glassfish.jersey.media.multipart.MultiPartFeature;
import org.glassfish.jersey.server.ResourceConfig;
import org.mx.service.rest.ServerStatisticResource;
import org.mx.service.rest.auth.RestAuthenticateFilter;
import org.mx.service.rest.cors.CorsFilter;

/**
 * 配置加载Tomcat默认资源的配置类，默认加载：CorsFilter, MultiPartFeature,
 * ServerStatisticResource, RestAuthenticateFilter
 * 
 * @author john.peng
 *
 */
public class TomcatResourceConfig extends ResourceConfig {
	/**
	 * 默认的构造函数
	 */
	public TomcatResourceConfig() {
		super();
		super.register(CorsFilter.class);
		super.register(MultiPartFeature.class);
		super.register(RestAuthenticateFilter.class);
		super.register(ServerStatisticResource.class);
	}
}
